package com.cmj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cmj.domain.ResponseResult;
import com.cmj.domain.dto.LinkDto;
import com.cmj.domain.entity.Link;
import com.cmj.domain.vo.LinkVo;
import com.cmj.domain.vo.PageVo;

/**
 * 友链(Link)表服务接口
 *
 * @author makejava
 * @since 2022-03-13 15:48:08
 */
public interface LinkService extends IService<Link> {

    /***
     * 获取所有友链
     * @return 友链列表
     */
    ResponseResult getAllLink();

    ResponseResult<PageVo> getAllLink(Integer pageNum, Integer pageSize, LinkDto linkDto);

    ResponseResult delLink(Long[] id);

    ResponseResult<LinkVo> getLink(Long id);

    ResponseResult updateLink(Link link);

    ResponseResult<LinkVo> addLink(Link link);
}
